var express = require('express')
var router = express.Router()
var fs = require('fs')
//渲染前端页面

router.get("/",(req,res,next) => {
    fs.readFile('../index.html','utf-8',(err,data) => {
        if(err){throw err}
        res.end(data)
    })
})

module.exports = router
